<?php

namespace app\common\validate;

use think\Validate;

class StoreGoods extends Validate
{
	protected $rule = [
		"title" => "require",
        "price" => "require",
        "image" => "require",
        "stock" => "require",
        "goods_category_id" => "require",
        "is_many_specs" => "require",

	];
	protected $message = [
		"title.require" => "请输入商品标题",
        "price.require" => "请输入商品价格",
        "image.require" => "请上传商品图片",
        "stock.require" => "请输入商品库存",
        "goods_category_id.require" => "请选择商品分类",
        "is_many_specs.require" => "请输入规格数量",
	];

	protected $scene = [
		'add'  =>  ['title', 'price', 'image', 'stock','goods_category_id','is_many_specs'],
		
	];
}
